import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"



// 获取角色
export const findRoleApi = (data) => {
    return httpPost('/roles/search', data)
}
// 添加角色
export const addRoleApi = (data) => {
    return httpPost('/roles/add', data)
}
// 删除角色
export const deleteRoleApi = (data) => {
    return httpDelete('/roles/remove', data)
}
// 修改角色
export const updateRoleApi = (data) => {
    return httpPut('/roles/update', data)
}
// 获取一个角色的详情
export const getRoleByIdApi = (data) => {
    return httpGet('/roles/detail', data)
}